﻿using UFrame.PD;
using UnityEngine;

namespace UFrame
{
    public sealed class CrashMa : Singleton<CrashMa>
    {
        private CrashMa() { }

        public void Init()
        {
            //EventMa.register(EGameEvent.ET_CrashBoth, OnCrash);
        }

        public void Realse()
        {
            //EventMa.unregister(EGameEvent.ET_CrashBoth, OnCrash);
        }

        //碰撞事件
        public void OnCrash(params object[] o)
        {
            ECrashType t1 = (ECrashType)o[0];
            ECrashType t2 = (ECrashType)o[1];
            GameObject go1 = (GameObject)o[2];
            GameObject go2 = (GameObject)o[3];
            EPlayerType playerType = (EPlayerType)o[4];

        }

        public static void GetCrashParameter(ECrashType e1, ECrashType e2, GameObject g1, GameObject g2)
        {

        }

    }

    public class CrashData
    {
        public ECrashType[] CrashTypeAry { get; set; }
        public GameObject[] GoAry { get; set; }
    }
}